package com.smart.lx.designPrinciples.ocp;

/**
 * 功能描述: <br>
 * 〈java课程扩展类〉
 *
 * @since: 1.0.0
 * @Author:abc
 * @Date: 2019/4/6
 */
public class JavaDiscountCourse  extends JavaCourse{


    public JavaDiscountCourse(Integer id, String name, Double price) {
        super(id, name, price);
    }

    public Double getOriginPrice(){
        return super.getPrice();
    }

    public Double getPrice(){
        return super.getPrice()*0.6;
    }
}



